package org.example.lost.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class LostInfo {
    @ApiModelProperty("失物id")
    private String lostId;

    @ApiModelProperty("失物种类id")
    @NotBlank(message = "物品分类id不能为空")
    private String kindId;

    @ApiModelProperty("失物名称")
    @NotBlank(message = "失物名称不能为空")
    private String lostName;

    @ApiModelProperty("失物地点")
    private String lostPlace;

    @ApiModelProperty("失物时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lostTime;

    @ApiModelProperty("失物描述")
    private String lostDecp;

    @ApiModelProperty("失物相关图片")
    private String lostPhoto;

    @ApiModelProperty("失物发布人id")
    private String userId;

    @ApiModelProperty("失物信息发布时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lostReleaseTime;

    @ApiModelProperty("失物状态")
    private Integer lostStatus;

    @ApiModelProperty("审核状态")
    private Integer checkStatus;

    @ApiModelProperty("创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;

    @ApiModelProperty("拾物者id")
    private String foundUserId;


}